package com.zwc.angle2048;

import android.os.Bundle;
import android.widget.FrameLayout;

import com.zwc.angle.AngleActivity;
/**
 * 游戏主入口
 * @author Administrator
 *
 */
public class MainActivity extends AngleActivity {
	UIOfClassic mTheGameClassic;
	UIOfTime mTheGameTime;
	UIOfUnlimited mTheGameUnlimited;
	UIOfHiScore mTheGameHiScore;
	UIOfMenu mTheMenu;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		mTheGameClassic = new UIOfClassic(this);
		mTheGameTime = new UIOfTime(this);
		mTheGameUnlimited = new UIOfUnlimited(this);
		mTheGameHiScore = new UIOfHiScore(this);
		mTheMenu = new UIOfMenu(this);

		setUI(mTheMenu);// 进入时显示的界面

		FrameLayout mainLayout = new FrameLayout(this);
		mainLayout.addView(mGLSurfaceView);
		setContentView(mainLayout);

	}
}
